package com.liu.service.impl;

import com.liu.POJO.Student;
import com.liu.dao.IStudentDao;
import com.liu.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IStudentServiceImpl implements IStudentService {
    @Autowired
    private IStudentDao dao;

    public int deleteByPrimaryKey(String id) {
        return dao.deleteByPrimaryKey(id);
    }

    public int insert(Student manager) {
        return dao.insert(manager);
    }

    public Student selectByPrimaryKey(String id) {
        return dao.selectByPrimaryKey(id);
    }

    public List<Student> selectAll() {
        return dao.selectAll();
    }

    public int updateByPrimaryKey(Student manager) {
        return dao.updateByPrimaryKey(manager);
    }
}
